package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.AudioDao;
import com.oscarmovie.model.Audio;

public class AudioServiceImpl implements AudioService{
	private AudioDao audioDao;

	public void setAudioDao(AudioDao audioDao) {
		this.audioDao = audioDao;
	}

	public AudioDao getAudioDao() {
		return audioDao;
	}

	
	public void save(Audio audio) {
		audioDao.save(audio);
	}

	
	public Audio load(int id) {
		Audio audio =  audioDao.load(id);
		return audio;
	}

	
	public List<Audio> loadAll() {
		return audioDao.loadAll();
	}
}
